          
          
         
            //var originalWidth = consultWidth = window.innerWidth;
            //var linkJumpCount = 16;
            var linkHref;
            var beginningDelay = null;
            var animateDelayCount = 4000;
            var watchBrowse = null;
            var watchScrollTop = null;
            var scrollingTop = null;
            var complete = null;
            function countDown(){
                    linkJumpCount -= 1;
                
                    //linkJumpCount=0时，跳转页面
                    if(linkJumpCount <= 0){
                        location.href = linkHref;
                    }

                    //每秒执行一次,showTime()
                    setTimeout("countDown()",100);
            }
            //禁止滚动
            function onMouseScroll(event) {
                    event.preventDefault();
                    var wheel = e.originalEvent.wheelDelta || -e.originalEvent.detail;
                    var delta = Math.max(-1, Math.min(1, wheel) );
                    if(delta < 0){//向下滚动
                        scrollDown = true;
                    }else{//向上滚动
                        scrollDown = false;
                    }
            }
            //内容高度是否小于屏幕高度
            function checkContnHeight(){
                if($('.container')[0].offsetHeight < window.innerHeight){
                    $('.container').addClass('fillAll');
                }
            }
            function backToTop(val){
                var step = val;
                scrollingTop = setInterval(function(){
                    var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
                    var newVal = scrollTop - step;
                    if(newVal <= 0){
                        document.documentElement.scrollTop = document.body.scrollTop = 0;
                        clearInterval(scrollingTop);
                    }
                    document.documentElement.scrollTop = document.body.scrollTop = newVal;
                },10)
            }
            
            //判断是否为移动设备
            function browserRedirect(){
                var sUserAgent = navigator.userAgent.toLowerCase();
                var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
                var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
                var bIsMidp = sUserAgent.match(/midp/i) == "midp";
                var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
                var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
                var bIsAndroid = sUserAgent.match(/android/i) == "android";
                var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
                var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
                if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
                    $('body').addClass('mobileDevice');
                    return true;
                }else{
                    return false;
                }
            }
            
            $(document).ready(function(){
                    browserRedirect(); 
                    setTimeout(checkContnHeight,10);
                    var thisHref = window.location.href;
                    for(var a = 0;a < $('header .menu .pc>ul>li a').length;a++){
                        var href = $('header .menu .pc>ul>li a')[a].getAttribute('href').split('.')[0];
                        if(thisHref.indexOf(href) >= 0){
                            $('header .menu .pc>ul>li a:eq(' + a + ')').parents('li').addClass('current');
                            break;
                        }
                    }
                    if(!$('header .menu .pc>ul>li.current').length){
                        $('header .menu .pc>ul>li:first-child').addClass('current');
                    }

                    watchScrollTop = setInterval(function(){
                        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
                        if(window.innerWidth >= 768){
                            if(scrollTop != 0 && $('header .menu')[0].className.indexOf('up') < 0){
                                $('header .menu').addClass('up');
                            }else if(scrollTop == 0 && $('header .menu')[0].className.indexOf('up') >= 0){
                                $('header .menu').removeClass('up');
                            }
                        }

                        if(scrollTop > 300 && $('.toTop')[0].className.indexOf('show') < 0){
                            $('.toTop').addClass('show');
                        }else if(scrollTop <= 300 && $('.toTop')[0].className.indexOf('show') > 0){
                            $('.toTop').removeClass('show');
                        }
                    },10)
                    $('.toTop').click(function(){
                        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
                        backToTop(scrollTop * .05);
                    })
                    $('.lvMsg .h').click(function(){
                        $(this).parent().addClass('up');
                    })
                    $('.lvMsg .box .tip i').click(function(){
                        $('.lvMsg').removeClass('up');
                    })
                    $('.online .btn').click(function(){
                        $(this).parent().removeClass('switch');
                    })
                    $('.online .methods .tip i').click(function(){
                        $('.online').addClass('switch');
                    })
                    $('.language>p').click(function(){
                        var This = $(this);
                        clearTimeout(complete);
                        if(!$(this).siblings('.list').height()){
                            var innerH = $(this).siblings('.list').find('.inner').height();
                            $(this).siblings('.list').height(innerH);
                            complete = setTimeout(function(){
                                This.siblings('.list').addClass('react');
                            },210)
                        }else{
                            $(this).siblings('.list').removeClass('react');var This = $(this);
                            complete = setTimeout(function(){
                                This.siblings('.list').height(0);
                            },10)
                        }
                    })
                    $('body').click(function(e){
                        e = e || window.event;
                        e.cancelBubble = true;
                        e.stopPropagation();
                        if(e.target.parentNode.className.indexOf('language') < 0){
                            clearTimeout(complete);
                            $('.language').find('.list').removeClass('react');
                            complete = setTimeout(function(){
                                $('.language').find('.list').height(0);
                            },10)
                        }
                    })
                    $('header .menu .pc .search').click(function(){
                        $('.searchBox').addClass('show');
                        var innerH = $('.searchBox').find('.inner')[0].offsetHeight;
                        $('.searchBox').find('.window').height(innerH);
                        complete = setTimeout(function(){
                            $('.searchBox .window').addClass('react');
                        },310)
                    })
                    $('.searchBox .window .inner .close').click(function(){
                        clearTimeout(complete);
                        $('.searchBox .window').removeClass('react');
                        complete = setTimeout(function(){
                            $('.searchBox').removeClass('show');
                            $('.searchBox').find('.window').height(0);
                        },10)
                    })
                    $('.searchBox').click(function(e){
                        e = e || window.event;
                        e.cancelBubble = true;
                        e.stopPropagation();
                        if(e.target == $(this)[0]){
                            $('.searchBox .window .inner .close')[0].click();
                        }
                        
                    })

                    $('header .menu .pc>ul>li').mouseenter(function(){
                        if($(this).find('.sonMenu').length){
                            if($(this).find('.sonMenu')[0].className.indexOf('show') < 0){
                                var sonH = $(this).find('.sonMenu .inner')[0].offsetHeight;
                                $(this).find('.sonMenu').addClass('show');
                                $(this).find('.sonMenu')[0].style.height = sonH + 'px';
                                
                            }else{
                                $(this).find('.sonMenu')[0].style.cssText = '';
                                $(this).find('.sonMenu').removeClass('show');
                            }
                            
                        }
                    })
                    $('header .menu .pc>ul>li').mouseleave(function(){
                        if($(this).find('.sonMenu').length){
                            $(this).find('.sonMenu').removeClass('show');
                            $(this).find('.sonMenu')[0].style.height = '';
                        }
                        
                    })
                    $('header .menu .pc>ul>li .sonMenu').mouseleave(function(){
                        $(this).removeClass('show');
                        $(this)[0].style.height = '';
                    })
                    $('header .menu .pc .mobileBtn').click(function(){
                        if($('header .menu')[0].className.indexOf('clicked') >= 0){
                            $('header .menu').removeClass('clicked');
                        }else{
                            $('header .menu').addClass('clicked');
                        }
                    })

                    $('header .menu .mobileMenu .links li>a').click(function(){
                        var clickSelf = $(this).parent()[0].className.indexOf('active') >= 0?true:false;
                        
                        if($(this).siblings('.sonMenu').length){
                            $('header .menu .mobileMenu .links li .sonMenu').height(0);
                            $('header .menu .mobileMenu .links li').removeClass('active');
                            if(!clickSelf){
                                $(this).parent().addClass('active');
                                var innerH = $(this).siblings('.sonMenu').find('.inner')[0].offsetHeight;
                                $(this).siblings('.sonMenu').height(innerH);
                            }
                            clearTimeout(complete);
                            $('.language').find('.list').removeClass('react');
                            complete = setTimeout(function(){
                                $('.language').find('.list').height(0);
                            },10)
                            return false;
                        }
                    })

                    $('footer .fluid>ul>li .ttl').click(function(){
                        if($(this).parent()[0].className.indexOf('active') < 0){
                            $(this).parent().addClass('active');
                            var innerH = $(this).siblings('.box').find('.inner')[0].offsetHeight;
                            $(this).siblings('.box').height(innerH);
                        }else{
                            $(this).parent().removeClass('active');
                            $(this).siblings('.box').height(0);
                        }
                        
                    })

                    
            })

            //$(document).on('mousewheel DOMMouseScroll', onMouseScroll);
            

        